QUnit.test( "测试创建下拉选择框 - 无指定模板", function( assert ) {
    __TextFormCreateTagOption_测试创建选项框的选项标前(assert);
});

//QUnit.test( "测试创建下拉选择框 - 模板bootstrap", function( assert ) {
//    __TextFormCreateTagOption_测试创建选项框的选项标前(assert,KSFormCreator.CONST_TEMPLATE_CATEGORY_IS_BOOTSTRAP);
//});


function __TextFormCreateTagOption_测试创建选项框的选项标前(assert,category){
    //创建被测试对象
    var oper=KSFormCreator.Create();
    if('undefined' !== typeof(category)){
        oper.setTemplateCategory(category);
    }
    
    //创建要创建表单的json
    var input_json={
        "action": "recevice.php",
        "method": "POST",
        "default":{
            "attr":[["style","color:red;"]], //默认的样式值,下标0是属性名称，下标1是属性取值
        },
        "cell": [
            {
                "type": "select", 
                "name": "s1",
                "attr":[],
                "template":[["#label#","下拉单选"]],
                "cell":[
                    {
                        "type": "option", 
                        "attr":[],
                        "template":[["#value#","Option-Red"]],
                    },
                    {
                        "type": "option", 
                        "attr":[],
                        "template":[["#value#","Option-Blue"]],
                    }
                ]
            },
            {
                "type": "select", 
                "name": "s2",
                "attr":[["multiple","multiple"]],
                "template":[["#label#","下拉多选"]],
                "cell":[
                    {
                        "type": "option", 
                        "attr":[],
                        "template":[["#value#","Option-Glay"]],
                    },
                    {
                        "type": "option", 
                        "attr":[],
                        "template":[["#value#","Option-Yellow"]],
                    }
                ]
            }
        ]
    };
    
    //创建存储表单的DIV 对象
    var div_form= $('<div id="test_form"></div>');
    
    assert.equal("test_form",$(div_form).attr("id"),"DIV对象创建成功");
    assert.equal("",$(div_form).html(),"DIV内部为空");
    
    //创建被测试对象 setItems("JSON构造图纸","父节点对象")
    oper.setMap(input_json);
    oper.makeForm(div_form); //生成信息到这个特定的DIV中。
    
    //获取添加的INPUT 表单
    var input_cell_arr=$(div_form).find("form").find("select");
    assert.equal(2,input_cell_arr.length,'成功添加一个多选DOM');
    assert.equal("s1",$(input_cell_arr[0]).attr("name"),'下拉单选s1');
    assert.equal("s2",$(input_cell_arr[1]).attr("name"),'下拉多选s2');
    assert.equal("multiple",$(input_cell_arr[1]).attr("multiple"),'下拉多选s2');
    
    //断言选项内容
    assert.equal(2,$(input_cell_arr[0]).get(0).length,'获取S1的选项数量');
    assert.equal(2,$(input_cell_arr[1]).get(0).length,'获取S2的选项数量');
    
}